{%include file="m.index.header.tpl.php"%}
<!--主体部分-->
 <form action="" method="get">	
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-right:10%;">
    <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="index.php?a=summarize.add&summarize_type={%$summarize_type%}&summarize_mark={%$summarize_mark%}" style="width:30%">增加</a></div>
  </div>
  <!--row  end-->  
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">标题:</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="{%$summarize_title%}" name="summarize_title">
        </div>
      </div>
    </div>
    
    <div class="col-sm-12 distance hierarchy" >
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">开始日期:</label>
        <div class="col-sm-10">
           <input type="text" class="form-control" value="{%$from%}" id="from" name="from">
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance hierarchy" >
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">结束日期:</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" value="{%$to%}" id="to" name="to">
        </div>
      </div>
    </div>
    <div class="col-xs-12 distance hierarchy2">
      <div class="form-group  text-center" style="padding-top:0px;">
	    <input type="hidden" name="summarize_mark" value="{%$summarize_mark%}">
		<input type="hidden" name="summarize_type" value="{%$summarize_type%}">
		<input type="hidden" name="a" value="summarize.list">
        <button type="submit" class="btn btn-success absolutely ">搜索</button>
      </div>
    </div>
  </div>
  </form>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;"> 
    <!-- <h5>总计44条信息</h5>-->
	{%foreach from=$summarize_lists key=key item=value%}
    <table class="table table-striped table-bordered "  id="middles">
      <tr>
        <td>标题</td>
        <td>{%$value.summarize_title%}</td>
      </tr>
      <tr>
        <td>提交者</td>
        <td>{%$value.staff_name%}</td>
      </tr>
      <tr>
        <td>提交日期</td>
        <td>{%$value.create_time%}</td>
      </tr>
      <tr>
        <td>操作</td>
        <td > 
              <a class="btn btn-warning" href="index.php?a=summarize.manageclassifyinfoList&summarize_id={%$value.summarize_id%}&summarize_type={%$summarize_type%}&summarize_mark={%$summarize_mark%}" >查看</a> 
              <a class="btn btn-danger  " href="index.php?a=summarize.update&summarize_type={%$summarize_type%}&summarize_mark={%$summarize_mark%}&summarize_id={%$value.summarize_id%}" >修改</a>
        </td>
      </tr>
    </table>
	{%/foreach%}  
  </div>
</div>
<!--container  end--> 

<!--主体部分  end--> 
<!--底部-->
  {%include file="m.index.footer.tpl.php"%}
<!--container  end--> 

<!--底部end--> 
<!--日历--> 
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script> 
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script> 
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历--> 
<script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
</script>